import {myFetch} from '@/assets/js/utils.js'

export default{
    async getMembers (rank = 2) {
        const r = await myFetch({
            name: 'shopping.sys.wx.members',
            rank
        })
        return r
    },
    async getUpper () {
        const r = await myFetch({
            name: 'shopping.sys.wx.getupper'
        })
        return r
    },
    async changeUpper (code) {
        const r = await myFetch({
            name: 'shopping.sys.wx.bindupper',
            code
        })
        return r
    },
    // 获取入会商品
    async getMembershipGoods () {
        const r = await myFetch({
            name: 'shopping.sys.vipgoods'
        })
        return r
    },
    async askMembership (no) {
        const r = await myFetch({
            name: 'shopping.sys.levelup',
            words: no
        })
        return r
    }
}
